package com.hnisi.diagram
{
	/**
	 * Icon管理类；
	 * @author 黄记新, 上午9:10:06
	 */
	public class IconManager
	{
		public function IconManager()
		{
		}
		
		[Embed(source='../../../../resources/128ICON.png')] 
		private static var ICONClass:Class;
		
		
		[Embed(source='../../../../resources/3com.png')] 
		private static var comClass:Class;
		
		
		[Embed(source='../../../../resources/64dlbz.png')] 
		private static var dlbzClass:Class;
		
		
		[Embed(source='../../../../resources/64running.png')] 
		private static var runningClass:Class;
		
		[Embed(source='../../../../resources/room1.png')] 
		private static var room1Class:Class;
		
		[Embed(source='../../../../resources/room2.png')] 
		private static var room2Class:Class;
		
		[Embed(source='../../../../resources/room3.png')] 
		private static var room3Class:Class;
		
		[Embed(source='../../../../resources/room4.png')] 
		private static var room4Class:Class;
		
		[Embed(source='../../../../resources/room5.png')] 
		private static var room5Class:Class;
		
		
		private static var typeMapping:Object = {
			com:comClass,
			ICON:ICONClass,
			dlbz:dlbzClass,
			running:runningClass,
			room1:room1Class,
			room2:room2Class,
			room3:room3Class,
			room4:room4Class,
			room5:room5Class
		}
		
		public static function getIcon(type:String):Class
		{
			return typeMapping[type];
		}

	}
}